/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package net.sigawe.core.Parsing;

import java.util.ArrayList;
import java.util.List;
import java.util.StringTokenizer;

/**
 *
 * @author yoze
 */
public class Parser {
    public static List<String> getTokenList(String str, String delim) {
        List<String> listToken = new ArrayList();
        StringTokenizer tok = new StringTokenizer(str, delim);
        int i = 0;
        while (tok.hasMoreTokens()) {
            listToken.add(tok.nextToken());
            i++;
        }
        return listToken;
    }

}
